<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<link rel="stylesheet" href="statics/css/WarehouseManagement/tpl/registration.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <img class="img " src="statics/images/titheader.svg">
            <span>工厂仓库登记修改</span>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" action="" lay-filter="editor-form">
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">单据编号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="billNo" id="billNo" lay-verify="required" autocomplete="off" class="layui-input">
                            <input type="hidden" name="id" id="id">
                            <input type="hidden" name="newBillNo" id="newBillNo">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">仓库名称</label>
                        <div class="layui-input-inline">
                            <select name="warehouseId" id="warehouseId" lay-filter="warehouseId" lay-verify="required">
                                <option value=""></option>
                            </select>
                            <input type="hidden" name="warehouseName" id="warehouseName">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label">创建日期</label>
                        <div class="layui-input-inline">
                            <input type="text" name="createDate" id="createDate"  placeholder="年 - 月 - 日" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">操作员</label>
                        <div class="layui-input-inline">
                            <input type="text" name="operator" id="operator" readonly="readonly" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item zdy-item-css">
                    <div class="layui-inline">
                        <label class="layui-form-label xb_required">客户名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="customerName" id="customerName" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                        <%--<label class="layui-form-label xb_required">客户名称</label>
                        <div class="layui-input-block" style="margin-left: 0;width: 100%" id="customerSelect"></div>
                        <input type="hidden" id="customerName" name="customerName">
                        <input type="hidden" id="customerCode" name="customerCode">--%>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">业务类型</label>
                        <div class="layui-input-inline">
                            <input type="text" name="typeStr" id="typeStr" readonly="readonly" lay-verify="required" autocomplete="off" class="layui-input">
                            <input type="hidden" value="1" name="type" id="type">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <textarea name="memo" id="memo" placeholder="请输入内容" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <table class="layui-table" id="productinformation" lay-filter="productinformationtable"></table>
                    </div>
                </div>
                <div class="padding text-right">
                    <button type="button" class="layui-btn" lay-submit  lay-filter="form-element">立即提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/html" id="imgTpl">
    <img src="{{d.img}}" data-id="{{d.tempId}}" class="btn_productimg" onerror="this.src='statics/images/layui-logo.jpg';this.onerror=null" alt="产品图片" style="max-width:70px;max-height: 28px;">
</script>
<script type="text/html" id="articleNoSelect">
    <select name="articleNo" class="articleNo" id="articleNo_{{d.tempId}}" lay-filter="articleNoSelect_filter" lay-search>
        <option value=""></option>
    </select>
</script>
<script type="text/html" id="resourcesamplewarehouse">
    <select name="resourcesamplewarehouse" class="warehouse" id="warehouse_{{d.tempId}}" lay-filter="resourcesamplewarehouse_filter">
        <option value=""></option>
    </select>
</script>
<script type="text/html" id="materialSupplierSelect">
    <select name="supplierCode" class="supplierCode" id="supplierCode_{{d.tempId}}" lay-filter="materialSupplierSelect_filter" lay-search>
        <option value=""> </option>
    </select>
</script>
<script type="text/html" id="productinformationtoolbar">
    <a class="layui-btn layui-btn-normal" lay-event="new">新增</a>
    <a class="layui-btn layui-btn-normal" data-type="getCheckData" lay-event="productlibraryimport">产品库导入</a>
    <a class="layui-btn layui-btn-normal" data-type="getCheckData" lay-event="purchaseImport">采购单导入</a>
    <a class="layui-btn layui-btn-danger" lay-event="del">删除</a>
</script>
<script type="text/html" id="productcodeselect">
    <div class="layui-input-inline">
        <div class="layui-form-select ySearchSelect y_{{d.tempId}}" data-id="{{d.tempId}}">
            <div class="layui-input value_{{d.tempId}}">{{d.productCode}}</div>
            <i class="layui-edge"></i>
            <table class="layui-table zdy" id="productcodeselect_{{d.tempId}}" lay-filter="productcodeselecttable_{{d.tempId}}"></table>
        </div>
    </div>
</script>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/WarehouseManagement/tpl/ResourceSamplesRegistrationUpdate.js"></script>